package com.cuotigou.mapper;

import com.cuotigou.pojo.SWrongTopic;

import java.util.List;
import java.util.Map;

public interface SWrongTopicMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SWrongTopic record);

    Long insertSelective(SWrongTopic record);

    SWrongTopic selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SWrongTopic record);

    int updateByPrimaryKey(SWrongTopic record);
    //用户指定科目的错题
    List<SWrongTopic> selectWrongTopicByMap(Map<String,Object> map);
    //用户指定科目的错题的数量
    Integer selectWrongTopicCountByMap(Map<String,Object> map);
    //查询热门题目
    List<SWrongTopic> selectWrongTopicHot(Long subjectId);

    List<SWrongTopic> selectWrongTopicIsHot(Map<String,Object> map);
    //题库复习查询
    List<SWrongTopic> selectReviewByMap(Map<String,Object> map);
    //错题筛选
    List<SWrongTopic> selectScreenByMap(Map<String,Object> map);
    //错题筛选
    List<SWrongTopic> selectScreenByMap2(Map<String,Object> map);
    //错题筛选的数量
    Integer selectScreenCountByMap(Map<String,Object> map);
    //举一反三查询
    List<SWrongTopic> selectLearnByAnalogy(Map<String,Object> map);
    //根据悬赏id查询错题
    SWrongTopic selectWrongTopicByRewadId(Long rewadId);
    //根据数组查询题目
    List<SWrongTopic> selectWrongTopicByArray(String[] array);
}